package cn.jimmie.learn.viewArt.refreshview.core;

/**
 * function :
 *
 * <p> Create Time:  2019年04月12日 00:13 </p>
 * <p> @author Jimmie.Qian  </p>
 */
public class RefreshState {
    private LoadState loadState;
    private ResultState resultState;
    private boolean footViewEnable = true;
    private boolean headViewEnable = true;

    public RefreshState() {
        loadState = LoadState.IDLE;
        resultState = ResultState.SUCCESS;
    }

    public boolean isHeadViewEnable() {
        return headViewEnable;
    }

    public void setHeadViewEnable(boolean headViewEnable) {
        this.headViewEnable = headViewEnable;
    }

    public boolean isFootViewEnable() {
        return footViewEnable;
    }

    public void setFootViewEnable(boolean footViewEnable) {
        this.footViewEnable = footViewEnable;
    }

    public LoadState getLoadState() {
        return loadState;
    }

    public void setLoadState(LoadState loadState) {
        this.loadState = loadState;
    }

    public ResultState getResultState() {
        return resultState;
    }

    public void setResultState(ResultState resultState) {
        this.resultState = resultState;
    }

    public enum LoadState {
        PULLING, IDLE, REFRESHING
    }

    public enum ResultState {
        SUCCESS, FAILURE, END
    }
}
